<html>
<head>
  <title>Base HREF test</title>
  <base href="https://example.com/path/file.html?query">
</head>
<body>
<a href="./anotherfile.html">Link</a>.
</body>
</html>